package com.cee.service;



import com.cee.dto.UserDTO;
import com.cee.model.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    /**
     * get one user by id
     * @param id
     * @return
     */
    User getUserById(Long id);

    /**
     * 查询列表
     * @param userDTO
     * @return
     */
    List<User> getUserList(UserDTO userDTO);

    void addUser (User user);

    void updateUser (User user);

    void deleteUser(User user);

    Map<String, Object> loginUser(User user);
}
